package telas.venda;

import java.awt.BorderLayout;
import java.awt.EventQueue;

import javax.swing.JFrame;
import javax.swing.JPanel;
import javax.swing.border.EmptyBorder;
import javax.swing.JLabel;
import java.awt.Font;
import javax.swing.JTextField;
import javax.swing.JButton;
import javax.swing.JScrollPane;
import javax.swing.JTable;
import javax.swing.table.DefaultTableModel;
import java.awt.SystemColor;
import javax.swing.ImageIcon;

public class TelaVendaAuxiliar extends JFrame {

	private JPanel contentPane;
	private JTextField textField;
	private JTextField textField_1;
	private JTable table;

	/**
	 * Launch the application.
	 */
	public static void main(String[] args) {
		EventQueue.invokeLater(new Runnable() {
			public void run() {
				try {
					TelaVendaAuxiliar frame = new TelaVendaAuxiliar();
					frame.setVisible(true);
				} catch (Exception e) {
					e.printStackTrace();
				}
			}
		});
	}

	/**
	 * Create the frame.
	 */
	public TelaVendaAuxiliar() {
		super("Selecionar Produto");
		setResizable(false);
		setDefaultCloseOperation(JFrame.DISPOSE_ON_CLOSE);
		setBounds(100, 100, 800, 600);
		setVisible(true);
		setLocationRelativeTo(null);
		
		contentPane = new JPanel();
		contentPane.setBorder(new EmptyBorder(5, 5, 5, 5));
		setContentPane(contentPane);
		contentPane.setLayout(null);
		
		JLabel lblAdicionarProduto = new JLabel("Pesquisar Produto");
		lblAdicionarProduto.setFont(new Font("Tahoma", Font.BOLD, 18));
		lblAdicionarProduto.setBounds(10, 140, 352, 19);
		contentPane.add(lblAdicionarProduto);
		
		JLabel label_1 = new JLabel("Descri\u00E7\u00E3o");
		label_1.setFont(new Font("Tahoma", Font.PLAIN, 12));
		label_1.setBounds(10, 171, 51, 15);
		contentPane.add(label_1);
		
		textField = new JTextField();
		textField.setColumns(10);
		textField.setBounds(10, 186, 555, 20);
		contentPane.add(textField);
		
		JButton button = new JButton("Pesquisar");
		button.setBounds(10, 217, 130, 23);
		contentPane.add(button);
		
		JButton button_1 = new JButton("Limpar Pesquisa");
		button_1.setBounds(150, 217, 130, 23);
		contentPane.add(button_1);
		
		JScrollPane scrollPane = new JScrollPane();
		scrollPane.setBounds(10, 252, 772, 273);
		contentPane.add(scrollPane);
		
		table = new JTable();
		table.setBackground(SystemColor.info);
		table.setModel(new DefaultTableModel(
			new Object[][] {
				{null, null, null, null},
				{null, null, null, null},
				{null, null, null, null},
				{null, null, null, null},
				{null, null, null, null},
				{null, null, null, null},
				{null, null, null, null},
				{null, null, null, null},
				{null, null, null, null},
				{null, null, null, null},
				{null, null, null, null},
				{null, null, null, null},
				{null, null, null, null},
				{null, null, null, null},
				{null, null, null, null},
			},
			new String[] {
				"Descri\u00E7\u00E3o", "Estoque", "Valor Unit\u00E1rio", "Cod. de Barras"
			}
		));
		table.getColumnModel().getColumn(0).setPreferredWidth(352);
		table.getColumnModel().getColumn(3).setPreferredWidth(122);
		scrollPane.setViewportView(table);
		
		textField_1 = new JTextField();
		textField_1.setColumns(10);
		textField_1.setBounds(575, 187, 207, 20);
		contentPane.add(textField_1);
		
		JLabel label_2 = new JLabel("C\u00F3digo de Barras");
		label_2.setFont(new Font("Tahoma", Font.PLAIN, 12));
		label_2.setBounds(575, 171, 184, 15);
		contentPane.add(label_2);
		
		JButton btnAdicionarAoPedido = new JButton("Adicionar ao Pedido");
		btnAdicionarAoPedido.setBounds(10, 537, 155, 23);
		contentPane.add(btnAdicionarAoPedido);
		
		JLabel logo = new JLabel(" ");
		logo.setIcon(new ImageIcon(TelaVendaAuxiliar.class.getResource("/telas/sistema/figuras/LogoComFundo2.png")));
		logo.setBounds(0, 0, 794, 128);
		contentPane.add(logo);
	}
}
